
<?php

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;

	$this->title = "个人中心";

	$gender = [1=>'男',2=>'女'];

?>

<style type="text/css">
	.mui-bar{background-color:rgb(41, 167, 226);}
	.mui-title{color: #FFF;}
	.mui-table-view {margin-top: 10px;}
	.update{font-style: normal;font-size: 15px;margin-right: -25px;}
	.mui-table-view-cell:after{left:0}
</style>
<script type="text/javascript">
var getId=localStorage.getItem("id");
if(!getId){
	window.location.href='/member/member/login'; 
}
</script>

	<header class="mui-bar mui-bar-nav">
		<a href="/member/member/edit" data-link="as" class="mui-icon mui-icon-compose mui-pull-right" id="edit" style="color: #FFF;"></a>
		<h1 class="mui-title">个人中心</h1>
	</header>
	
	
<div class="mui-content">
	<div class="mui-scroll-wrapper" style="top:40px;">
	<div class="mui-scroll">
		<div class="mui-row">
			<div class="mui-col-xs-12">
			<ul class="mui-table-view mui-table-view-chevron">
				    <li class="mui-table-view-cell">手机号<i class="mui-pull-right update" id="phone"></i></li>
				    <li class="mui-table-view-cell">姓名 <i class="mui-pull-right update" id="name"></i></li>
			</ul> 
			</div>
			<div class="mui-col-xs-12">  
			<ul class="mui-table-view mui-table-view-chevron">
				    <li class="mui-table-view-cell">Email <i class="mui-pull-right update" id="email"></i></li>
				    <li class="mui-table-view-cell">公司名称 <i class="mui-pull-right update" id="company"></i></li>
					 
			</ul>
			<ul class="mui-table-view">
					<li class="mui-table-view-cell" style="text-align: center;">
					      <a href="/member/member/logout" data-link="as" style="color: red">退出登录</a>
					</li>	
			</ul>
			</div>
		</div>
	</div>
	</div>	
</div>

<?php app\components\JsBlock::begin() ?>
<script type="text/javascript">
var mem_id = localStorage.getItem("id");
var url = "/member/member/edit?id="+mem_id;
var phone = localStorage.getItem("phone");
phone = phone ? phone : '(未设置)';
var name = localStorage.getItem("name");
name = name ? name : '(未设置)';
var email = localStorage.getItem("email");
email = email ? email : '(未设置)';
var company = localStorage.getItem("company");
company = company ? company : '(未设置)';
$("#edit").attr("href",url);
$("#phone").text(phone);
$("#name").text(name);
$("#email").text(email);
$("#company").text(company);

mui.init();
mui('body').on('tap','a[data-link="as"]',function(){document.location.href=this.href;});
mui('.mui-scroll-wrapper').scroll({
  deceleration: 0.0005 //flick 减速系数，系数越大，滚动速度越慢，滚动距离越小，默认值0.0006
});			
</script>
<?php app\components\JsBlock::end() ?>


	




